package cn.jiedanba.cacert.admin.vo.page;

import javax.servlet.http.HttpServletRequest;

/**
 * 表格数据处理
 * 
 * @author
 */
public class TableSupport {
	/**
	 * 封装分页对象
	 */
	public static PageDomain getPageDomain(HttpServletRequest request) {
		PageDomain pageDomain = new PageDomain();
		pageDomain.setPageNum(Integer.valueOf(request.getParameter("pageNum")));
		pageDomain.setPageSize(Integer.valueOf(request.getParameter("pageSize")));
		pageDomain.setOrderByColumn(request.getParameter("orderByColumn"));
		pageDomain.setIsAsc(request.getParameter("isAsc"));
		return pageDomain;
	}

	public static PageDomain buildPageRequest(HttpServletRequest request) {
		return getPageDomain(request);
	}

}
